<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<style type="text/css">
			.page {
				pagesize: 12px;
				background-color: #fff;
				text-align: center;
				line-height: 25px;
				font-size: 0;
			}
			.page a, .page span {
				color: #333;
				text-decoration: none;
				cursor: pointer;
				padding: 0 8px;
				border: 1px solid #dedede;
				display: inline-block;
				font-size: 12px;
				margin-right: 5px;
			}
			.page .disable {
				background-color: #f3f3f3;
				cursor: default;
				color: #999;
			}
			.page a:hover, .page .on {
				background-color: #a40000;
				text-decoration: none;
				color: #fff;
				border-color: #a40000;
			}
			.page .on {
				cursor: default;
			}
			.page .dot {
				cursor: default;
				border: none;
				vertical-align: 5px;
			}
			.page .href {
				border: none;
				overflow: hidden;
				vertical-align: top;
				_vertical-align: middle;
			}
			.page label {
				vertical-align: middle;
			}
			.page .a_text {
				margin: 0 5px;
				width: 26px;
				border: 1px solid #dedede;
				text-align: center;
				height: 18px;
				line-height: 18px;
				vertical-align: middle;
			}
			.page .a_text:focus {
				border-color: #a40000;
			}
			.page .a_button {
				margin-left: 5px;
				background-color: #a40000;
				color: #fff;
				width: 40px;
				text-align: center;
				border: 0;
				height: 24px;
				line-height: 24px;
				vertical-align: middle;
				cursor: pointer;
			}
		</style>
		<script type="text/javascript" src="../common_js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="page.js"></script>
		<script type="text/javascript">
			function pagable_show(content_div, page_div, data_format, datasrc_url) {
				var a = content_div.ajaxPage({
					url : datasrc_url, //后端 url, {page} 为当前页, 可以为伪静态如:  xl_{page}.html
					run : false, //是否开始加载
					pageId : page_div, //分页容器
					content : function() {
						return data_format;
					}
				});
				a.run();
				a.get("first");
			}

			$(function() {
				pagable_show($('#xl'), $('#page'), '<ul>[data]<li>标题:{title},时间:{time},点击:{hit}</li>[/data]</ul>', 'data.js')
			});
		</script>
	</head>
	<body>
		<div style="width:600px;">
			<div id="xl"></div>
			<div id="page" class="page"></div>
		</div>
	</body>
</html>
